package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.List;

public class ActivityprizesExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public ActivityprizesExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andApnoIsNull() {
            addCriterion("apno is null");
            return (Criteria) this;
        }

        public Criteria andApnoIsNotNull() {
            addCriterion("apno is not null");
            return (Criteria) this;
        }

        public Criteria andApnoEqualTo(String value) {
            addCriterion("apno =", value, "apno");
            return (Criteria) this;
        }

        public Criteria andApnoNotEqualTo(String value) {
            addCriterion("apno <>", value, "apno");
            return (Criteria) this;
        }

        public Criteria andApnoGreaterThan(String value) {
            addCriterion("apno >", value, "apno");
            return (Criteria) this;
        }

        public Criteria andApnoGreaterThanOrEqualTo(String value) {
            addCriterion("apno >=", value, "apno");
            return (Criteria) this;
        }

        public Criteria andApnoLessThan(String value) {
            addCriterion("apno <", value, "apno");
            return (Criteria) this;
        }

        public Criteria andApnoLessThanOrEqualTo(String value) {
            addCriterion("apno <=", value, "apno");
            return (Criteria) this;
        }

        public Criteria andApnoLike(String value) {
            addCriterion("apno like", value, "apno");
            return (Criteria) this;
        }

        public Criteria andApnoNotLike(String value) {
            addCriterion("apno not like", value, "apno");
            return (Criteria) this;
        }

        public Criteria andApnoIn(List<String> values) {
            addCriterion("apno in", values, "apno");
            return (Criteria) this;
        }

        public Criteria andApnoNotIn(List<String> values) {
            addCriterion("apno not in", values, "apno");
            return (Criteria) this;
        }

        public Criteria andApnoBetween(String value1, String value2) {
            addCriterion("apno between", value1, value2, "apno");
            return (Criteria) this;
        }

        public Criteria andApnoNotBetween(String value1, String value2) {
            addCriterion("apno not between", value1, value2, "apno");
            return (Criteria) this;
        }

        public Criteria andArnoIsNull() {
            addCriterion("arno is null");
            return (Criteria) this;
        }

        public Criteria andArnoIsNotNull() {
            addCriterion("arno is not null");
            return (Criteria) this;
        }

        public Criteria andArnoEqualTo(String value) {
            addCriterion("arno =", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoNotEqualTo(String value) {
            addCriterion("arno <>", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoGreaterThan(String value) {
            addCriterion("arno >", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoGreaterThanOrEqualTo(String value) {
            addCriterion("arno >=", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoLessThan(String value) {
            addCriterion("arno <", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoLessThanOrEqualTo(String value) {
            addCriterion("arno <=", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoLike(String value) {
            addCriterion("arno like", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoNotLike(String value) {
            addCriterion("arno not like", value, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoIn(List<String> values) {
            addCriterion("arno in", values, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoNotIn(List<String> values) {
            addCriterion("arno not in", values, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoBetween(String value1, String value2) {
            addCriterion("arno between", value1, value2, "arno");
            return (Criteria) this;
        }

        public Criteria andArnoNotBetween(String value1, String value2) {
            addCriterion("arno not between", value1, value2, "arno");
            return (Criteria) this;
        }

        public Criteria andPrinoIsNull() {
            addCriterion("prino is null");
            return (Criteria) this;
        }

        public Criteria andPrinoIsNotNull() {
            addCriterion("prino is not null");
            return (Criteria) this;
        }

        public Criteria andPrinoEqualTo(String value) {
            addCriterion("prino =", value, "prino");
            return (Criteria) this;
        }

        public Criteria andPrinoNotEqualTo(String value) {
            addCriterion("prino <>", value, "prino");
            return (Criteria) this;
        }

        public Criteria andPrinoGreaterThan(String value) {
            addCriterion("prino >", value, "prino");
            return (Criteria) this;
        }

        public Criteria andPrinoGreaterThanOrEqualTo(String value) {
            addCriterion("prino >=", value, "prino");
            return (Criteria) this;
        }

        public Criteria andPrinoLessThan(String value) {
            addCriterion("prino <", value, "prino");
            return (Criteria) this;
        }

        public Criteria andPrinoLessThanOrEqualTo(String value) {
            addCriterion("prino <=", value, "prino");
            return (Criteria) this;
        }

        public Criteria andPrinoLike(String value) {
            addCriterion("prino like", value, "prino");
            return (Criteria) this;
        }

        public Criteria andPrinoNotLike(String value) {
            addCriterion("prino not like", value, "prino");
            return (Criteria) this;
        }

        public Criteria andPrinoIn(List<String> values) {
            addCriterion("prino in", values, "prino");
            return (Criteria) this;
        }

        public Criteria andPrinoNotIn(List<String> values) {
            addCriterion("prino not in", values, "prino");
            return (Criteria) this;
        }

        public Criteria andPrinoBetween(String value1, String value2) {
            addCriterion("prino between", value1, value2, "prino");
            return (Criteria) this;
        }

        public Criteria andPrinoNotBetween(String value1, String value2) {
            addCriterion("prino not between", value1, value2, "prino");
            return (Criteria) this;
        }

        public Criteria andApnameIsNull() {
            addCriterion("apName is null");
            return (Criteria) this;
        }

        public Criteria andApnameIsNotNull() {
            addCriterion("apName is not null");
            return (Criteria) this;
        }

        public Criteria andApnameEqualTo(String value) {
            addCriterion("apName =", value, "apname");
            return (Criteria) this;
        }

        public Criteria andApnameNotEqualTo(String value) {
            addCriterion("apName <>", value, "apname");
            return (Criteria) this;
        }

        public Criteria andApnameGreaterThan(String value) {
            addCriterion("apName >", value, "apname");
            return (Criteria) this;
        }

        public Criteria andApnameGreaterThanOrEqualTo(String value) {
            addCriterion("apName >=", value, "apname");
            return (Criteria) this;
        }

        public Criteria andApnameLessThan(String value) {
            addCriterion("apName <", value, "apname");
            return (Criteria) this;
        }

        public Criteria andApnameLessThanOrEqualTo(String value) {
            addCriterion("apName <=", value, "apname");
            return (Criteria) this;
        }

        public Criteria andApnameLike(String value) {
            addCriterion("apName like", value, "apname");
            return (Criteria) this;
        }

        public Criteria andApnameNotLike(String value) {
            addCriterion("apName not like", value, "apname");
            return (Criteria) this;
        }

        public Criteria andApnameIn(List<String> values) {
            addCriterion("apName in", values, "apname");
            return (Criteria) this;
        }

        public Criteria andApnameNotIn(List<String> values) {
            addCriterion("apName not in", values, "apname");
            return (Criteria) this;
        }

        public Criteria andApnameBetween(String value1, String value2) {
            addCriterion("apName between", value1, value2, "apname");
            return (Criteria) this;
        }

        public Criteria andApnameNotBetween(String value1, String value2) {
            addCriterion("apName not between", value1, value2, "apname");
            return (Criteria) this;
        }

        public Criteria andApnumberIsNull() {
            addCriterion("apNumber is null");
            return (Criteria) this;
        }

        public Criteria andApnumberIsNotNull() {
            addCriterion("apNumber is not null");
            return (Criteria) this;
        }

        public Criteria andApnumberEqualTo(String value) {
            addCriterion("apNumber =", value, "apnumber");
            return (Criteria) this;
        }

        public Criteria andApnumberNotEqualTo(String value) {
            addCriterion("apNumber <>", value, "apnumber");
            return (Criteria) this;
        }

        public Criteria andApnumberGreaterThan(String value) {
            addCriterion("apNumber >", value, "apnumber");
            return (Criteria) this;
        }

        public Criteria andApnumberGreaterThanOrEqualTo(String value) {
            addCriterion("apNumber >=", value, "apnumber");
            return (Criteria) this;
        }

        public Criteria andApnumberLessThan(String value) {
            addCriterion("apNumber <", value, "apnumber");
            return (Criteria) this;
        }

        public Criteria andApnumberLessThanOrEqualTo(String value) {
            addCriterion("apNumber <=", value, "apnumber");
            return (Criteria) this;
        }

        public Criteria andApnumberLike(String value) {
            addCriterion("apNumber like", value, "apnumber");
            return (Criteria) this;
        }

        public Criteria andApnumberNotLike(String value) {
            addCriterion("apNumber not like", value, "apnumber");
            return (Criteria) this;
        }

        public Criteria andApnumberIn(List<String> values) {
            addCriterion("apNumber in", values, "apnumber");
            return (Criteria) this;
        }

        public Criteria andApnumberNotIn(List<String> values) {
            addCriterion("apNumber not in", values, "apnumber");
            return (Criteria) this;
        }

        public Criteria andApnumberBetween(String value1, String value2) {
            addCriterion("apNumber between", value1, value2, "apnumber");
            return (Criteria) this;
        }

        public Criteria andApnumberNotBetween(String value1, String value2) {
            addCriterion("apNumber not between", value1, value2, "apnumber");
            return (Criteria) this;
        }

        public Criteria andBnoIsNull() {
            addCriterion("bno is null");
            return (Criteria) this;
        }

        public Criteria andBnoIsNotNull() {
            addCriterion("bno is not null");
            return (Criteria) this;
        }

        public Criteria andBnoEqualTo(String value) {
            addCriterion("bno =", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoNotEqualTo(String value) {
            addCriterion("bno <>", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoGreaterThan(String value) {
            addCriterion("bno >", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoGreaterThanOrEqualTo(String value) {
            addCriterion("bno >=", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoLessThan(String value) {
            addCriterion("bno <", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoLessThanOrEqualTo(String value) {
            addCriterion("bno <=", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoLike(String value) {
            addCriterion("bno like", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoNotLike(String value) {
            addCriterion("bno not like", value, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoIn(List<String> values) {
            addCriterion("bno in", values, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoNotIn(List<String> values) {
            addCriterion("bno not in", values, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoBetween(String value1, String value2) {
            addCriterion("bno between", value1, value2, "bno");
            return (Criteria) this;
        }

        public Criteria andBnoNotBetween(String value1, String value2) {
            addCriterion("bno not between", value1, value2, "bno");
            return (Criteria) this;
        }

        public Criteria andApprizetypeIsNull() {
            addCriterion("apPrizeType is null");
            return (Criteria) this;
        }

        public Criteria andApprizetypeIsNotNull() {
            addCriterion("apPrizeType is not null");
            return (Criteria) this;
        }

        public Criteria andApprizetypeEqualTo(String value) {
            addCriterion("apPrizeType =", value, "apprizetype");
            return (Criteria) this;
        }

        public Criteria andApprizetypeNotEqualTo(String value) {
            addCriterion("apPrizeType <>", value, "apprizetype");
            return (Criteria) this;
        }

        public Criteria andApprizetypeGreaterThan(String value) {
            addCriterion("apPrizeType >", value, "apprizetype");
            return (Criteria) this;
        }

        public Criteria andApprizetypeGreaterThanOrEqualTo(String value) {
            addCriterion("apPrizeType >=", value, "apprizetype");
            return (Criteria) this;
        }

        public Criteria andApprizetypeLessThan(String value) {
            addCriterion("apPrizeType <", value, "apprizetype");
            return (Criteria) this;
        }

        public Criteria andApprizetypeLessThanOrEqualTo(String value) {
            addCriterion("apPrizeType <=", value, "apprizetype");
            return (Criteria) this;
        }

        public Criteria andApprizetypeLike(String value) {
            addCriterion("apPrizeType like", value, "apprizetype");
            return (Criteria) this;
        }

        public Criteria andApprizetypeNotLike(String value) {
            addCriterion("apPrizeType not like", value, "apprizetype");
            return (Criteria) this;
        }

        public Criteria andApprizetypeIn(List<String> values) {
            addCriterion("apPrizeType in", values, "apprizetype");
            return (Criteria) this;
        }

        public Criteria andApprizetypeNotIn(List<String> values) {
            addCriterion("apPrizeType not in", values, "apprizetype");
            return (Criteria) this;
        }

        public Criteria andApprizetypeBetween(String value1, String value2) {
            addCriterion("apPrizeType between", value1, value2, "apprizetype");
            return (Criteria) this;
        }

        public Criteria andApprizetypeNotBetween(String value1, String value2) {
            addCriterion("apPrizeType not between", value1, value2, "apprizetype");
            return (Criteria) this;
        }

        public Criteria andApdescribeIsNull() {
            addCriterion("apDescribe is null");
            return (Criteria) this;
        }

        public Criteria andApdescribeIsNotNull() {
            addCriterion("apDescribe is not null");
            return (Criteria) this;
        }

        public Criteria andApdescribeEqualTo(String value) {
            addCriterion("apDescribe =", value, "apdescribe");
            return (Criteria) this;
        }

        public Criteria andApdescribeNotEqualTo(String value) {
            addCriterion("apDescribe <>", value, "apdescribe");
            return (Criteria) this;
        }

        public Criteria andApdescribeGreaterThan(String value) {
            addCriterion("apDescribe >", value, "apdescribe");
            return (Criteria) this;
        }

        public Criteria andApdescribeGreaterThanOrEqualTo(String value) {
            addCriterion("apDescribe >=", value, "apdescribe");
            return (Criteria) this;
        }

        public Criteria andApdescribeLessThan(String value) {
            addCriterion("apDescribe <", value, "apdescribe");
            return (Criteria) this;
        }

        public Criteria andApdescribeLessThanOrEqualTo(String value) {
            addCriterion("apDescribe <=", value, "apdescribe");
            return (Criteria) this;
        }

        public Criteria andApdescribeLike(String value) {
            addCriterion("apDescribe like", value, "apdescribe");
            return (Criteria) this;
        }

        public Criteria andApdescribeNotLike(String value) {
            addCriterion("apDescribe not like", value, "apdescribe");
            return (Criteria) this;
        }

        public Criteria andApdescribeIn(List<String> values) {
            addCriterion("apDescribe in", values, "apdescribe");
            return (Criteria) this;
        }

        public Criteria andApdescribeNotIn(List<String> values) {
            addCriterion("apDescribe not in", values, "apdescribe");
            return (Criteria) this;
        }

        public Criteria andApdescribeBetween(String value1, String value2) {
            addCriterion("apDescribe between", value1, value2, "apdescribe");
            return (Criteria) this;
        }

        public Criteria andApdescribeNotBetween(String value1, String value2) {
            addCriterion("apDescribe not between", value1, value2, "apdescribe");
            return (Criteria) this;
        }

        public Criteria andApstateIsNull() {
            addCriterion("apState is null");
            return (Criteria) this;
        }

        public Criteria andApstateIsNotNull() {
            addCriterion("apState is not null");
            return (Criteria) this;
        }

        public Criteria andApstateEqualTo(Integer value) {
            addCriterion("apState =", value, "apstate");
            return (Criteria) this;
        }

        public Criteria andApstateNotEqualTo(Integer value) {
            addCriterion("apState <>", value, "apstate");
            return (Criteria) this;
        }

        public Criteria andApstateGreaterThan(Integer value) {
            addCriterion("apState >", value, "apstate");
            return (Criteria) this;
        }

        public Criteria andApstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("apState >=", value, "apstate");
            return (Criteria) this;
        }

        public Criteria andApstateLessThan(Integer value) {
            addCriterion("apState <", value, "apstate");
            return (Criteria) this;
        }

        public Criteria andApstateLessThanOrEqualTo(Integer value) {
            addCriterion("apState <=", value, "apstate");
            return (Criteria) this;
        }

        public Criteria andApstateIn(List<Integer> values) {
            addCriterion("apState in", values, "apstate");
            return (Criteria) this;
        }

        public Criteria andApstateNotIn(List<Integer> values) {
            addCriterion("apState not in", values, "apstate");
            return (Criteria) this;
        }

        public Criteria andApstateBetween(Integer value1, Integer value2) {
            addCriterion("apState between", value1, value2, "apstate");
            return (Criteria) this;
        }

        public Criteria andApstateNotBetween(Integer value1, Integer value2) {
            addCriterion("apState not between", value1, value2, "apstate");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}